package com.king01.controller;

import com.king01.service.InlibraryService;
import com.king01.vo.BranchVo;
import com.king01.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：lqs
 * @date ：Created in 2023/9/26 17:37
 * @description：
 * @modified By：
 * @version:
 */
@RestController
@RequestMapping("/Inlibrary")
public class InlibraryController {

    @Autowired
    private InlibraryService inlibraryService;

    //获取入库信息主表的数据
    @RequestMapping("/info")
    public Result info(Integer currentPage, Integer pageSize, @RequestBody BranchVo branchVo){
        Result inStorageDao = inlibraryService.findInStorageDao(currentPage,pageSize,branchVo);
        return inStorageDao;
    }

    @RequestMapping("/updateInlibrary")
    public Result updateInlibrary(Integer id){
        Result result = inlibraryService.updateInlibrary(id);
        return result;
    }
    @RequestMapping("/updateRemark")
    public Result updateRemark(Integer id, String remark){
        Result result = inlibraryService.updateRemark(id, remark);
        return result;
    }
}

